package TestDemo.example.fitter;

import jakarta.servlet.*;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

@Slf4j
//@WebFilter (value = "/*")
public class DemoFillter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.info("开始进入过滤器");
        //***********************************
        log.info("结束进入过滤器");
        filterChain.doFilter(servletRequest,servletResponse);
    }
}
